import { post, get } from './http'
// 获取登录信息
export const login = (params) => post('/users/login', params)
// 获取用户信息
export const info = (params) => get('/users/info', params)
// 获取注册信息
export const register = (params) => post('/users/register', params)

// 获取轮播图 
export const getBanner = params => get('/pro/banner', params)

// 获取商铺列表
export const getShopList = params => get('/pro/list', params)

// 获取精品列表
export const getBoutiqueList = (params) => get('/find/boutique', params)
// 获取文章列表
export const getTextList = params => get('/find/boutique', params)

// 获取晒单列表
export const getSheetList = (params) => get('/find/sheet', params)

//获取关注列表信息
export const getConcern = params => get('/find/follow', params)

//获取商品卡片及商家信息
export const getRestaurantCard = params => post('/pro/detail', params)

// 获取推荐列表
export const getFollowList = (params) => get('/find/recommend', params)

// 获取上新列表
export const getNewGoodsList = (params) => get('/find/shangxin', params)



//获取商品卡片的用户评论信息
export const getUserComments = params => post('/pro/comment', params)

//获取商品卡片的优惠信息
export const getDiscount = params => post('/pro/discount', params)

// 按距离排序
export const getScreenDistance = params => get('/screen/distance', params)

// 按好评排序
export const getScreenGoodreview = params => get('/screen/goodreview', params)

// 按人气排序
export const getScreenPopularity = params => get('/screen/popularity', params)

// 是否免预约排序
export const getScreenExemption = params => post('/screen/exemption', params)
//获取商品套餐信息
export const getPackage = params => post('/pro/integration', params)

//获取热门收搜
export const getSearchs = params => get('/pro/hot', params)

//搜索接口
export const getChangeSearch = params => post('/pro/serach', params)

// 获取用户信息
export const getUsersInfo = params => get('/users/info', params)
//POST 用户背景轮播

export const postuserbanner = params => post('/users/userbanner', params)

//GET 获取首页轮播图
export const getbanner = params => get('/pro/banner', params)
//请求修改数量
export const getChangeNum = params => post('/pro/updatecount', params)

//请求数量
export const getCount = params => post('/pro/selectcount', params)


//获取套餐详情
export const getIntegration = params => post('/pro/integration', params)